var app = angular.module('about',[]);
app.controller('aboutcontroller',function($scope,$http){
	$scope.initView = function(){
		$http({
			method:"get",
			url:apiRoot + "?act=article&op=article_list&ac_id=7",
		}).then(function SuccessCallback(data){ 
			console.log(JSON.stringify(data));
			$scope.article_list = data.data.datas.article_list; 
		},function errorfunction(e){
			error(); 
		})
	}
	$scope.about = function(id){
		var nwaiting = plus.nativeUI.showWaiting();//显示原生等待框
		var webviewContent= plus.webview.create('./About.html','About.html',{},{article_id:id});//后台创建webview并打开show.html
		webviewContent.addEventListener("loaded", function() { //注册新webview的载入完成事件
	        nwaiting.close(); //新webview的载入完毕后关闭等待框
	        webviewContent.show("slide-in-right",500); //把新webview窗体显示出来，显示动画效果为速度200毫秒的右侧移入动画
        }, false);
	}
})
	
document.addEventListener('plusready',function(){
	aboutElement = document.querySelector('[ng-controller=aboutcontroller]');
	$scope = angular.element(aboutElement).scope();
	$scope.initView();
	$scope.$apply();
},false)
